import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProjectTasksListTsComponent } from 'src/app/tasks/project-tasks-list-ts/project-tasks-list-ts.component';
import { ProjectTasksListTs1Component } from 'src/app/tasks/project-tasks-list-ts1/project-tasks-list-ts1.component';
import { WelcomeComponent } from './welcome.component';

const routes: Routes = [
  {
    path: '',
    component: WelcomeComponent,
    children: [
      {
        path: 'task1',
        component: ProjectTasksListTs1Component,
      },
      {
        path: 'task2/:id',
        component: ProjectTasksListTsComponent,
      },
    ],
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class WelcomeRoutingModule {}
